package com.xx;

import com.xx.netty.NettyServer;

public class Main {
    public static void main(String[] args) {
        if(args.length < 2){
            System.out.println("请输入ip和端口号");
            return;
        }
        String ip = args[0];
        String port = args[1];
        if(port != null && !"".equals(port)&&ip != null && !"".equals(ip)){
            new NettyServer().start(ip,port);
        }

        System.out.println("Hello world!");
    }
}